package com.velpro.im.controller.msg;

import java.util.List;

public class TableResponse<T> extends BaseResponse {
	
	TableData<T> data;

    public TableResponse(long total, List<T> rows) {
        this.data = new TableData<T>(total, rows);
    }

    public TableResponse() {
        this.data = new TableData<T>();
    }

    public TableData<T> getData() {
        return data;
    }

    public void setData(TableData<T> data) {
        this.data = data;
    }

    class TableData<T> {
        long total;
        List<T> list;

        public TableData(long total, List<T> list) {
            this.total = total;
            this.list = list;
        }

        public TableData() {
        }

        public long getTotal() {
            return total;
        }

        public void setTotal(long total) {
            this.total = total;
        }

		public List<T> getList() {
			return list;
		}

		public void setList(List<T> list) {
			this.list = list;
		}

        
        
    }
}
